﻿namespace Microsoft.VisualStudio.TextTemplating.CommandLine
{
    using System;

    [AttributeUsage(AttributeTargets.Class)]
    internal sealed class CommandAttribute : Attribute
    {
        private bool allowNoNameOptions;
        private string briefDescription;
        private string briefUsage;
        private string generalInformation;
        private string name;

        public CommandAttribute(string name)
        {
            this.name = name;
            this.briefUsage = string.Empty;
            this.generalInformation = string.Empty;
        }

        public bool AllowNoNameOptions
        {
            get
            {
                return this.allowNoNameOptions;
            }
            set
            {
                this.allowNoNameOptions = value;
            }
        }

        public string BriefDescription
        {
            get
            {
                return this.briefDescription;
            }
            set
            {
                this.briefDescription = value;
            }
        }

        public string BriefUsage
        {
            get
            {
                return this.briefUsage;
            }
            set
            {
                this.briefUsage = value;
            }
        }

        public string GeneralInformation
        {
            get
            {
                return this.generalInformation;
            }
            set
            {
                this.generalInformation = value;
            }
        }

        public string Name
        {
            get
            {
                return this.name;
            }
            set
            {
                this.name = value;
            }
        }
    }
}

